package study.函数式接口;

import lombok.Data;

/**
 * @Author 金贵权
 * @Date 2023/6/15 16:21
 **/
@Data
public class Fruit {
    String name;
    Integer weight;
    String color;
    Fruit(){

    }

    public Fruit(Integer weight){
        this.weight = weight;
    }

    public Fruit(String name,Integer weight,String color){
        this.name = name;
        this.weight = weight;
        this.color = color;
    }
}
